package com.yunchang.springboot.mapper.mwsreport;

import com.yunchang.springboot.models.mwsreportbean.MwsMonthlyStorageFees;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MwsMonthlyStorageFeesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MwsMonthlyStorageFees record);

    int insertSelective(MwsMonthlyStorageFees record);

    MwsMonthlyStorageFees selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MwsMonthlyStorageFees record);

    int updateByPrimaryKey(MwsMonthlyStorageFees record);

    String getLatestDay(@Param("sellerId") String sellerId, @Param("area") String area);

    /**
     * 根据createTime获取对应的数据
     * @param time
     * @return
     */
    List<MwsMonthlyStorageFees> selectByCreateTime(String time);

    /**
     * 根据financeStatus查询出对应的数据
     * @param financeStatus
     * @return
     */
    List<MwsMonthlyStorageFees> selectByFinanceStatus(Integer financeStatus,Integer limitValue);

    /**
     * 根据mwsMonthlyStorageFeesList对象集合修改financeStatus的状态
     * @param mwsMonthlyStorageFeesList
     * @return
     */
    int updateFinanceStatusByMwsMonthlyStorageFeesList(@Param("mwsMonthlyStorageFeesList") List<MwsMonthlyStorageFees> mwsMonthlyStorageFeesList);
}